from django.conf.urls import patterns, url
from confs import SMART_TYPE_FORUM 
from .models import SUPPORT_ZAN, SUPPORT_SAVE

urlpatterns = patterns('smart.views',
        url(r'^$', 'index', {'template':'forum/index.html', 'type1':SMART_TYPE_HOUSE}), 

        url(r'^list/(?P<typeid>\d+)/(?P<page>\d+)/$', 'article_list', 
            {'bigtype': SMART_TYPE_HOUSE, 'template':'forum/article_list.html'}), 

        url(r'^detail/(?P<articleid>\d+)/$', 'article_detail', 
            {'template':'forum/article_detail.html'}), 

        url(r'^showtypes/$', 'showtypes', {'bigtype': SMART_TYPE_HOUSE, 'template':'forum/showtypes.html'}),

        url(r'^addhouse/(?P<typeid>\d+)/$', 'add_article', {'template':'forum/add_article.html'}),

        url(r'^comment/(?P<articleid>\d+)/$', 'add_comment'),  #json request
)

